home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
misc
/
Getty_13.lha
/
Getty-13
/
Config
/
Getty.access
next >
Wrap
Text File
|
1996-08-07
|
3KB
|
101 lines
;=========================================================================
; Getty access file
; -----------------
;
; For each user, the Access File must contain entries like this:
;
; USER UserID
; <MODE> "Programm Arguments"
; [SNOOP] "FileName"
; [TIME] <TimeOut>
; [PATH] <Path>
; [CMD] <Command>
;
; with:
;
; USER LoginID, *same* as specified in the password file!
;
; <MODE> can either be one of
; EXEC - if the programm should be executed
; SHELL - if a FIFO shell should be opened
; LOCKED - if the user has no access (no login)
;
; SNOOP optional, the filename to where the output will also be
; echoed to.
;
; TIME optional, time the user has
;
; PATH optional, the path the user has *no* access to
;
; CMD optional, command the user has *no* access to
;
; Comment lines start with a ";" in the FIRST colum.
;
; NOTE: If no PATH or CMD entry is given, the programm is executed and
; the user has *full* access (unless you are running
; multiuser.library)
;
;=========================================================================
;This is the described test-user
;-------------------------------
USER test
SHELL ""
SNOOP "RAM:.%u.snoop"
;Example of a locked user
;------------------------
USER locked ;user gets no access
LOCKED
;Examples for some bugs
;-----------------------
USER error1 ;can't open shell, fifo doesn't
SHELL "mm %D %U %B %P %T %u %h" ;recognize -> deadlock 'til timeout
;** serious bug, try! no harm **
;USER error2 ;passwd entry, but no access entry!
;** fixed, info text is displayed **
USER error3 ;acces entry, but no SHELL/EXEC
;** fixed, info text is displayed **
;Examples for mode set to EXEC
;-----------------------------
USER exec1 ;user will see nothing!
EXEC "c:type c:type hex"
USER exec2 ;user will see nothing, but the
EXEC "c:type c:type hex" ;output is echoed to "RAM:.exec2.snoop"
SNOOP "RAM:.%u.snoop"
USER shell1 ;user gets a remote shell with *NO*
SHELL "" ;restrictions!
USER shell2 ;dito to shell1, but the shell output
SHELL "" ;is also echoed to "RAM:.shell2.snoop"
TIME 30 ;and the user only has 30 seconds online
SNOOP "RAM:.%u.snoop"
USER shell3 ;ahhh, remote shell with restrictions
SHELL "" ;and output echoed to "CON:..."
SNOOP "CON:0/0/640/200/User: %u"
PATH RAM: ;restricted paths
PATH C:
CMD DIR ;restricted commands
USER shell4 ;the output is echoed to the remote
SHELL "c:type c:type hex" ;shell. that's all folks!
USER shell5 ;dito to shell4 but the shell output
SHELL "c:type c:type hex" ;is also echoed to "RAM:.shell5.snoop"
SNOOP "RAM:.%u.snoop"